export default {
    // 开始麦克风广播
    startMicBroadcast(options) {
        return Request.post({
            url: `/SmrSaas/req/broadcastHub/broadcastPlan/startLiveBroadcast`,
            contentType: 'json',
            ...options,
            loading: false,
        });
    },
    // 暂停麦克风广播
    stopMicBroadcast(options) {
        return Request.post({
            url: `/SmrSaas/req/broadcastHub/broadcastPlan/stopSponBroadcast`,
            contentType: 'json',
            loading: false,
            ...options
        });
    },
    // 获取广播下发信息id（链接websocket时需要传这个参数作为唯一标识符）有效期30分钟
    localBroadcast(options) {
        return Request.post({
            url: `/SmrSaas/req/broadcastHub/music/addRecordingInfo`,
            contentType: 'json',
            loading: false,
            ...options
        });
    },
    //设置音量
    setDeviceVolume(option) {
        return Request.post({
            url: `/SmrSaas/req/broadcastHub/plan/setVolumeWithList`,
            contentType: 'json',
            ...option
        });
    },
}